package com.time.timespace.commons.constant;

import java.util.HashMap;
import java.util.Map;

public class BaseConstants {

    public static class Flag {
        public static final String Y = "Y";

        public static final String N = "N";
    }

    public static final Boolean TRUE = true;

    public static final Boolean FALSE = false;

    public static final String BEARER = "Bearer";

    public static class Authentication {

        public static final String USER = "用户";

        public static final String ADMIN = "管理员";
    }

    public static class Pattern {
        public static final String DATE_TIME = "yyyy-MM-dd HH:mm:ss";
        public static final String DATE = "yyyy-MM-dd";
        public static final String DATE_STRING = "yyyyMMdd";
    }

    public static class ChargeType {
        public static final String IN = "in";
        public static final String OUT = "out";
    }

    public static final Map<String, String> TYPE_MAP = new HashMap<>() {{
        put("in", "收入");
        put("out", "支出");
    }};
}
